package pa165.dominating.species.dao;

import java.util.List;
import pa165.dominating.species.entities.Environment;

/**
 *
 * @author Stanislau Dubrouski
 */
public interface EnvironmentDao {
    /*
     * creates new Environment
     * @param env Environment with set attributes (but without Id) to be created.
     */

    public void createEnvironment(Environment env);

    /*
     * deletes Environment
     * @param env Environment to be deleted.
     */
    public void deleteEnvironment(Environment env);

    /*
     * Returns Environment with specified Id
     * @param id Id of Environment to be returned.
     * @return Environment with specified Id.
     */
    public Environment getEnvironmentById(Long id);

    /*
     * Updates existing Environment according to given Environment.
     * @param env Environment with set attributes
     */
    public void updateEnvironment(Environment env);

    /*
     * Returns all existing Environments.
     */
    public List<Environment> getAllEnvironments();
}
